package com.xuchaotong.concurrent;

public class MobileTest {
    public static void main(String[] args) throws InterruptedException {
        MobileRunable instance = new MobileRunable();

        Thread thread = new Thread(instance);
        thread.start();
        Thread.sleep(1000);
        instance.setRunning(false);
        System.out.println("我已经让Mobile停止运动了！" + instance.isRunning());
    }
}
